package com.bestway.server.impl;

import com.bestway.server.CalSum;
import org.springframework.stereotype.Service;

@Service
public class CalSumImpl implements CalSum {

    @Override
    public float getClac(boolean flag,float a,float b) {
        float cal = 0;
        while (flag){
            cal = a+b;
            return cal;
            }
        cal = a-b;
        return cal;

    }
}